package com.ddd.domain.model.product;

import com.ddd.domain.share.Entity;
import com.ddd.domain.share.TrackingId;

public class ProductEntity  implements Entity<ProductEntity>{

    /**
     * 商品唯一id，skuId
     */
    private TrackingId skuId;

    private ProductValueObject productValueObject;

    public TrackingId trackingId() {
        return skuId;
    }

    @Override
    public boolean sameIdentityAs(ProductEntity other) {
        return other != null && skuId.sameValueAs(other.skuId);
    }
}
